﻿using System;
using System.Collections.Generic;

namespace Enterprise.Admin.Handle
{
    /// <summary>
    /// 获取管理员信息
    /// </summary>
    public partial class GetAdminUserListJson : AdminBasePage
    {
        /// <summary>
        /// 管理产品列表
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            var adminService = new AdminService();
            var tables = adminService.GetTable();
            var result = new { total = tables.Total, rows = new List<object>() };
            foreach (System.Data.DataRow item in tables.Rows)
            {
                result.rows.Add(new
                {
                    CoAdminId = item["CoAdminId"],
                    CoUserName = item["CoUserName"]
                });

            }
            Json(result);

        }
    }
}